package com.qdlc.p2p.biz.zdata;

import com.qdlc.p2p.biz.executer.BaseExecuter;
import com.qdlc.p2p.common.constant.Global;
import com.qdlc.p2p.common.constant.LogTplNid;

/**
 * 借款人资金入账
 *
 * @author cx
 * @version 2.0
 * @since 2014-5-29
 */
public class FlowBorrowSuccessExecuter extends BaseExecuter {

    private String accountLogType = LogTplNid.BORROW_SUCCESS;

    @Override
    public String getAccountLogType() {
        return accountLogType;
    }

    @Override
    public void handleAccountWithLog() {
		Global.setTransfer(LogTplNid.LOG_TPL_KEY, LogTplNid.BORROW_SUCCESS);
		Global.setTransfer("web_url", WEB_URL);
		accountService.addUseMoneyAndTotal(super.user.getUserId(), super.toUser.getUserId(), super.money);
    }
}
